package com.valten.model;

import com.valten.exception.assertion.BusinessExceptionAssert;
import lombok.AllArgsConstructor;
import lombok.Getter;


@Getter
@AllArgsConstructor
public enum ResponseEnum implements BusinessExceptionAssert {
    /**
     * 商品已经存在
     */
    PRODUCT_ALREADY_EXISTS(7001, "Product already exists."),
    /**
     * 商品不存在
     */
    PRODUCT_NOT_FOUND(7002, "Product not found.")

    ;

    /**
     * 返回码
     */
    private final int code;
    /**
     * 返回消息
     */
    private final String message;
}
